home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / syscall / RCS / Ioc_GetFlags.c,v < prev    next >
Encoding:
Text File  |  1991-12-11  |  2.2 KB  |  111 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.2.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     88.07.29.17.08.42;  author ouster;  state Exp;
  11. branches 1.2.1.1;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.06.19.14.29.17;  author ouster;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19. 1.2.1.1
  20. date     91.12.10.16.48.42;  author kupfer;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29. 1.2
  30. log
  31. @Lint.
  32. @
  33. text
  34. @/* 
  35.  * Ioc_GetFlags.c --
  36.  *
  37.  *    Source code for the Ioc_GetFlags library procedure.
  38.  *
  39.  * Copyright 1988 Regents of the University of California
  40.  * Permission to use, copy, modify, and distribute this
  41.  * software and its documentation for any purpose and without
  42.  * fee is hereby granted, provided that the above copyright
  43.  * notice appear in all copies.  The University of California
  44.  * makes no representations about the suitability of this
  45.  * software for any purpose.  It is provided "as is" without
  46.  * express or implied warranty.
  47.  */
  48.  
  49. #ifndef lint
  50. static char rcsid[] = "$Header: Ioc_GetFlags.c,v 1.1 88/06/19 14:29:17 ouster Exp $ SPRITE (Berkeley)";
  51. #endif not lint
  52.  
  53. #include <sprite.h>
  54. #include <fs.h>
  55.  
  56.  
  57. /*
  58.  *----------------------------------------------------------------------
  59.  *
  60.  * Ioc_GetFlags --
  61.  *    Return the flags associated with the stream.  This is composed
  62.  *    of a standard set of flags in the bits masked by IOC_GENERIC_FLAGS,
  63.  *    plus other bits interpreted soely by the (pseudo) device driver.
  64.  *
  65.  * Results:
  66.  *    A copy of the flags.
  67.  *
  68.  * Side effects:
  69.  *    None.
  70.  *
  71.  *----------------------------------------------------------------------
  72.  */
  73.  
  74. ReturnStatus
  75. Ioc_GetFlags(streamID, flagsPtr)
  76.     int streamID;
  77.     int *flagsPtr;
  78. {
  79.     register ReturnStatus status;
  80.  
  81.     status = Fs_IOControl(streamID, IOC_GET_FLAGS, 0,
  82.             (Address)NULL, sizeof(int), (Address) flagsPtr);
  83.     return(status);
  84. }
  85. @
  86.  
  87.  
  88. 1.2.1.1
  89. log
  90. @Initial branch for Sprite server.
  91. @
  92. text
  93. @d17 1
  94. a17 1
  95. static char rcsid[] = "$Header: /sprite/src/lib/c/syscall/RCS/Ioc_GetFlags.c,v 1.2 88/07/29 17:08:42 ouster Exp $ SPRITE (Berkeley)";
  96. @
  97.  
  98.  
  99. 1.1
  100. log
  101. @Initial revision
  102. @
  103. text
  104. @d17 1
  105. a17 1
  106. static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
  107. d49 1
  108. a49 1
  109.             (Address)NULL, sizeof(int), flagsPtr);
  110. @
  111.